//
//  WithDrawalDoneView.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/5.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "WithDrawalDoneView.h"

@implementation WithDrawalDoneView

- (id)initWithInSuperView:(UIView *)aSuperView
{
    if (self = [super initWithInSuperView:aSuperView]) {
        [self mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.equalTo(aSuperView);
        }];
        self.backgroundColor = [UIColor whiteColor];
        
        GLGWView *topView = [[GLGWView alloc] initWithInSuperView:self];
        [topView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.equalTo(self);
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(10)));
        }];
        topView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        
        GLGWImageView *imgV = [[GLGWImageView alloc] initWithImageName:@"icon_wancheng" inSuperView:self];
        [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(topView.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(40));
            make.centerX.equalTo(self.mas_centerX);
            make.width.height.equalTo(@(kWidthProportion_In_iPhoneTriploid(60)));
        }];
        
        GLGWLabel *lab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:self];
        lab.text = @"申请完成";
        [lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(imgV.mas_centerX);
            make.top.equalTo(imgV.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(20));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(22)));
        }];
        lab.textAlignment = NSTextAlignmentCenter;
        
        GLGWLabel *lab2 = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        lab2.text = @"提现申请提交成功，系统审核1-2个工作日！ 稍后客服会与您沟通核实，请保证电话畅通";
        [lab2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(lab.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(10));
            make.centerX.equalTo(imgV.mas_centerX);
            make.left.equalTo(self).offset(kWidthProportion_In_iPhoneTriploid(47));
            make.right.equalTo(self).offset(-kWidthProportion_In_iPhoneTriploid(47));
            make.bottom.equalTo(self).offset(-kHeightProportion_In_iPhoneTriploid(40));
        }];
        lab2.numberOfLines = 0;
        lab2.textAlignment = NSTextAlignmentCenter;
        
    }
    return self;
}

@end
